import { useState, Suspense } from 'react'
import './App.css'
import router from "./router/index"
import { useRoutes } from "react-router-dom"
import Loading from "./yzh/component/loading"

function App() {
  const element = useRoutes(router)
  return (
    <>
      <Suspense fallback={<Loading />}>
        {element}
      </Suspense>
    </>
  )
}



export default App
